/*
 * Copyright (c) 2009, Jan Pastor. All Rights Reserved.
 */

package sk.jp.jitag.vo;

/**
 * Input parameters and filters for search.
 */
public class SearchInput {

    public static enum CompOper {
        ge(">="),
        eq("="),
        le("<=");
        private String sqlOper;
        CompOper(String sqlOper) {
            this.sqlOper = sqlOper;
        }
        public String getSqlOper() {
            return sqlOper;
        }
    }

    public static enum LogicOper {
        or("or"),
        and("and");
        private String sqlOper;
        LogicOper(String sqlOper) {
            this.sqlOper = sqlOper;
        }
        public String getSqlOper() {
            return sqlOper;
        }
    }

    //----------------------------------------------------------------------

    private LogicOper fileNamePatternsOper;
    private String fileNamePatterns;

    //----------------------------------------------------------------------

    public LogicOper getFileNamePatternsOper() {
        return fileNamePatternsOper;
    }

    public void setFileNamePatternsOper(LogicOper fileNamePatternsOper) {
        this.fileNamePatternsOper = fileNamePatternsOper;
    }

    public String getFileNamePatterns() {
        return fileNamePatterns;
    }

    public void setFileNamePatterns(String fileNamePatterns) {
        this.fileNamePatterns = fileNamePatterns;
    }

    //----------------------------------------------------------------------

    @Override
    public String toString() {
        return "SearchInput{" +
               "fileNamePatternsOper=" + fileNamePatternsOper +
               ", fileNamePatterns='" + fileNamePatterns + '\'' +
               '}';
    }
}
